package com.lakers.notice.springboot.netty.processor;

import io.netty.channel.ChannelHandlerContext;

/**
 * 功能描述: AbstractMessageProcessor
 *
 * @author liqin(zxl)
 * @date 2024/5/3
 */
public abstract class AbstractMessageProcessor <T> {

    public void process(ChannelHandlerContext ctx, T data) {
    }

    public void process(T data) {
    }

    public T transForm(Object o) {
        return (T) o;
    }

}
